<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>用户登录-前端</title>
    <link rel="stylesheet" href="/styles.css">
    <style>
        /* 页面容器使用flex布局，实现垂直居中 */
        .container {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            min-height: 100vh;
            padding-top: 15vh;
            padding-bottom: 60px;
        }
        
        /* 卡片样式调整 */
        form.card {
            width: 400px;
            max-width: 90%;
            margin: 0 auto;
            padding: 30px;
            text-align: center;
        }
        
        /* 表单元素样式 */
        form.card div {
            margin-bottom: 15px;
            text-align: left;
        }
        
        /* 按钮容器 */
        .button-container {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            margin-bottom: 15px;
        }
        
        /* 按钮样式 */
        .button-container input[type="submit"] {
            background: linear-gradient(to right, #4b6cb7, #182848);
            color: white;
            border: none;
            padding: 10px 30px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            min-width: 100px;
        }
        
        /* 页脚固定在底部 */
        footer {
            position: fixed;
            bottom: 0;
            width: 100%;
        }
    </style>
</head>

<body>
    <div class="container">
        <form action="login.php" method="post" class="card">
            <h1>用户登录</h1>
            <div>
                <label for="username">用户名：</label>
                <input type="text" name="username" id="username">
            </div>
            <div>
                <label for="password">密码：</label>
                <input type="password" name="password" id="password">
            </div>
            <div class="button-container">
                <input type="submit" value="登录">
            </div>
            <p>还没有账号？<a href="../register/register1.php">注册</a></p>
        </form>
    </div>
    <?php include '../footer.php'; ?>
</body>
</html>